package orgamenu.ihm.JMenu;

import javax.swing.JLabel;
import javax.swing.JPanel;
import orgamenu.ihm.table.MyBorder;
import orgamenu.metier.Repas;

import java.awt.Color;
import java.awt.Dimension;


public class JPanelRepas extends JPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	Repas repas;
	JLabel label;
	
	private void init(){
		this.setBorder(new MyBorder());
		this.setBackground(Color.LIGHT_GRAY);
		this.setSize(new Dimension(300, 600));
	}
	
	public JPanelRepas() {
		super();
		init();
	}
	
	public JPanelRepas(String textEntree,String textPlat,String textDessert) {
		super();
		repas=new Repas(textEntree,textPlat,textDessert);
		label=new JLabel(repas.toString());
		
		this.add(label);
		init();
	}
	
	public JPanelRepas(Repas repas) {
		super();
		label=new JLabel(repas.toString());
		this.add(label);
		init();
	}
	
    

}
